import Vuex from 'vuex';
import Vue from 'vue';
import createPersistedState from '@/lib/vuexPlugin/persistedstate';
Vue.use(Vuex);
import app from '@/store/module/app';
import user from '@/store/module/user';
export default new Vuex.Store({
  plugins: [
    createPersistedState({
      storage: sessionStorage,
    }),
  ],
  modules: {
    app,
    user,
  },
});
